import os
# import json
import requests

# create code to here
web_list = ["baidu.com","qq.com","sohu.com","weibo.com","sina.com.cn","163.com",
    "tv.sohu.com","iqiyi.com","douban.com","youku.com"]

count_list = []
count_dict = {}
for web in web_list:
    req = requests.get("http://%s" % web)
    count_list.append(req.headers["Server"])
for key in count_list:
    count_dict[key] = count_dict.get(key, 0) + 1
print(count_dict)